//
//  _iOSUtils_UIViewAddtions.h
//  iOSUtils
//
//  Created by HJC on 11-9-8.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


extern NSInteger UIViewAutoresizingKeepInMiddle;

#pragma mark UIView
@interface UIView(_iOSUtils_Addtions)

// 查找属于cls类的子view
- (UIView*)  viewIsKindOf:(Class)cls recursive:(BOOL)recursive;

// 应用递归，遍历所有的子view, 包括子view的子view
- (UIView*) viewIsKindOf:(Class)cls;

// 将view上面的内容转成图片
- (UIImage*) renderToImage;

// 从nib文件中装载view
+ (UIView*) loadFromNibNamed:(NSString*)name isKindOf:(Class)cls;
+ (UIView*) loadFromNibNamed:(NSString*)name;

@end




#pragma mark UIWebView
@interface UIWebView(_iOSUtils_Addtions)

// 隐藏webview上面的阴影
- (void) hideWebViewShadow;

@end


